package com.kk.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.kk.common.PageResult;
import com.kk.pojo.entity.SysUser;
import com.kk.pojo.request.LoginRequest;
import com.kk.pojo.request.UserPageRequest;
import com.kk.pojo.request.UserRegisterRequest;
import com.kk.pojo.vo.LoginUserVO;
import com.kk.pojo.vo.UserListVO;
import org.springframework.data.domain.PageRequest;
import org.springframework.stereotype.Service;

import java.util.List;


public interface SysUserService extends IService<SysUser> {
    LoginUserVO loginService(LoginRequest request);

    // 根据用户名查找用户
    SysUser getUserByUsername(String username);

    Boolean registerService(UserRegisterRequest request);



    PageResult<UserListVO> getUserPage(UserPageRequest request);
}
